package solitaire.extras;

import java.awt.Graphics;
import java.awt.geom.Point2D;

import javax.swing.JOptionPane;

import solitaire.deck.Pile;
import solitaire.deck.PileCollection;
import solitaire.deck.Card.Rank;

public interface Drawable {
	
	public void drawObject(Graphics g);
	public boolean contains(Point2D p);
	public void setLocation(double dX, double dY);
	
	/*
	public static void fourKings (PileCollection pc)
	{
		for (Pile p : pc)
		{
			Rank lastRank = p.getCards().getLast().rank();
			if (lastRank != Rank.KING)
			{
				return;
			}
		}
		
		JOptionPane.showMessageDialog(null, "YOU WON THE GAME!");
		
		
	}
	*/
}
